package day14.volatiledemo02;

/**
 * @author Xiao
 * @date 2021/8/7
 */
public class Boy implements Runnable{
    @Override
    public void run() {
        synchronized (Money.lock) {
            try {
                Thread.sleep(10);
                Money.money = 90000;
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
